package com.sphd.Restaurant.model;

import com.sphd.Restaurant.base.MyApplication;
import com.sphd.Restaurant.utils.Constants;

/**
 * Created by Hu on 2016/9/28.
 */

public class Model  {
//    public static final String HTTPURL = "http://restaurant.zhongxs.com/Restaurant/cg/";
//    public static final String BASEURL = "http://restaurant.zhongxs.com/Restaurant";


    public static String HTTPURL = MyApplication.getRemember().getString(Constants.SERVICEURL,"http://restaurant.zhongxs.com/Restaurant/cg/");
    public static String BASEURL = MyApplication.getRemember().getString(Constants.SERVICEBASEURL,"http://restaurant.zhongxs.com/Restaurant");
    /**
     * 升级地址
     */
    public static String UPDATA = "/update/versionClient.xml";
//    public static String HTTPURL="http://192.168.1.128/Restaurant/cg/";
    /**
     * 注册时的访问地址
     * client_register.action?username=123&password=123
     */
    public static String REGISTER = "client_register.action?";
    /**
     * 注册时的访问地址
     * client_updatepwd.action?username=123&password=123
     */
    public static String FORGET = "client_updatepwd.action?";
    /**
     * 登录时的访问地址
     * client_login.action?username=15233252341&password=321&userID=&channelID=&deviceID=
     */
    public static String LOGIN = "client_login.action?";
    /**
     * 我的资料的访问地址
     * http://112.126.75.239:8080/Restaurant/cg/client_showuser.action?username=15233252341
     */
    public static String MYDATA = "client_showuser.action?";
    /**
     * 我的充值卡包访问地址
     * http://112.126.75.239:8080/Restaurant/cg/client_showaccount.action?username=15122903057&curpage=1&pageno=10
     */
    public static String RECHARGE = "client_showaccount.action?";
    /**
     * 我的充值卡记录访问地址
     * http://112.126.75.239:8080/Restaurant/cg/client_recordtopup.action?username=15122903057&cgid=1&curpage=1&pageno=10
     */
    public static String RECHARGELOG = "client_recordtopup.action?";
    /**
     * 我的优惠券访问地址
     * http://112.126.75.239:8080/Restaurant/cg/client_showcard.action?username=15122903057&curpage=1&pageno=10
     */
    public static String COUPONS = "client_showcard.action?";
    /**
     * 我的优惠券访问地址
     * http://112.126.75.239:8080/Restaurant/cg/client_recordcard.action?username=15122903057&cgid=1&curpage=1&pageno=10
     */
    public static String COUPONSDETAILS = "client_recordcard.action?";
    /**
     * 2015.12.30新改的接口
     * 我的优惠券访问地址
     * http://112.126.75.239:8080/Restaurant/cg/client_recordcard.action?username=15122903057&cgid=1&curpage=1&pageno=10
     */
    public static String NEWCOUPONSDETAILS = "client_new_recordcard.action?";
    /**
     * 我的支付记录访问地址
     * http://112.126.75.239:8080/Restaurant/cg/client_showcg_pay.action?username=15122903057&curpage=1&pageno=10
     */
    public static String PAYLOG = "client_showcg_pay.action?";
    /**
     * 我的订单
     * http://112.126.75.239:8080/Restaurant/cg/client_recordorder.action?username=15122903057&cgid=1&curpage=1&pageno=10
     */
    public static String DINGDAN = "client_new_recordorder.action?";
    /*
    *我的积分访问地址
    * http://112.126.75.239:8080/Restaurant/cg/client_list_integral.action?phone=18611833553
     */
    public static String INTEGRAL = "client_list_integral.action?";
    /**
     * 我的收货地址访问地址
     * http://112.126.75.239:8080/Restaurant/cg/client_listaddr.action?userid=13&curpage=1&pageno=10
     */
    public static String ADDRESS = "client_listaddr.action?";
    /**
     * 修改我的收货地址访问地址
     * client_updateaddr.action?userphone=123&userid=13&addr=sadsadsd&addrid=123&name=aaa
     */
    public static String UPDATEADDRESS = "client_updateaddr.action?";
    /**
     * 添加我的收货地址访问地址
     * client_updateaddr.action?userphone=123&userid=13&addr=sadsadsd&name=aaa
     */
    public static String ADDADDRESS = "client_addaddr.action?";
    /**
     * 删除我的收货地址访问地址
     * client_deleteaddr.action?addrid=123
     */
    public static String DELETADDRESS = "client_deleteaddr.action?";
    /**
     * 获得全部餐馆信息访问地址
     * http://112.126.75.239:8080/Restaurant/cg/clientOrder_getRestaurants.action?curpage=1&pageno=10
     */
    public static String ALLRESTAURANT = "clientOrder_getRestaurants.action?";
    /**
     * 获得餐馆信息访问地址
     * http://112.126.75.239:8080/Restaurant/cg/clientOrder_getCG.action?cgid=1
     */
    public static String RESTAURANT = "clientOrder_getCG.action?";
    /**
     * 判断是否是会员的接口
     * client_testmember.action?username=123&cgid=1
     */
    public static String ISVIP = "client_testmember.action?";
    /**
     * 加入会员接口
     * clientOrder_joinMem.action？cgid=12&cgname=sdasda&userPhone=123456&userID=&channelID=&deviceID=
     */
    public static String TOVIP = "clientOrder_joinMem.action?";
    /**
     * 获得全部菜品种类和菜品的接口
     * http://112.126.75.239:8080/Restaurant/cg/clientOrder_getDishesAndSorts.action?cgid=1&nw= nw 0为外卖 1为店内
     */
    public static String ALLGREENS = "clientOrder_getDishesAndSorts.action?";
    /**
     * 确定菜单的接口
     * http://112.126.75.239:8080/Restaurant/cg/clientOrder_selectOK.action?cgid=1&userPhone=15122903057&status=true
     */
    public static String CONFIRMORDER = "clientOrder_selectOK.action?";
    /**
     * 获得全部订单的接口
     * http://112.126.75.239:8080/Restaurant/cg/clientOrder_getOrders.action?
     * cgid=1&isOsale=1&userPhone=15122903057&curpage=1&pageno=10
     */
    public static String ALLINDENT = "clientOrder_getOrders.action?";
    /**
     * 提交用户订单
     */
    public static String CLIENTORDER = "clientOrder_order.action?";
    /**
     * 修改用户信息
     */
    public static String UPDATEUSER = "client_updateuser.action?";
    /**
     * 结账
     */
    public static String CHECKOUT = "clientOrder_checkOut.action?";
    /**
     * 得到优惠信息
     */
    public static String GETOFF = "clientOrder_getPromotions.action?";
    /**
     * 2016.3.17新改的接口   得到优惠信息
     */
    public static String NEWGETOFF = "clientOrder_new_getPromotions.action?";
    /**
     * 得到菜单详情
     */
    public static String GETINDENTDETAILS = "client_order_detail.action?";

    /*
   *消息列表
   * */
    public static String MESSAGE = "client_list_message.action?";

    /**
     * 积分详情
     */
    public static String INTEGRALSOMETHING = "client_convert_integral.action?";
    /*
    * 获取城市列表
    * */
    public static String CITIESLIST = "client_list_city.action?";


    /*
    * client_list_restaurant 常用餐馆访问
    * */
    public static String OFFTENUSE = "client_list_restaurant.action?";
}
